package com.strawberry.chat2.library.netease;

import com.facebook.react.ReactPackage;
import com.facebook.react.bridge.JavaScriptModule;
import com.facebook.react.bridge.NativeModule;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.uimanager.ViewManager;
import com.strawberry.chat2.library.netease.chatRoom.ChatRoomModule;
import com.strawberry.chat2.library.netease.p2p.P2PModule;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

public class NeteasePackage implements ReactPackage {
    @Override
    public List<NativeModule> createNativeModules(ReactApplicationContext reactContext) {
        return Arrays.asList(new NativeModule[]{
                // Modules from third-party
                new P2PModule(reactContext),
                new ChatRoomModule(reactContext)
        });
    }

    @Override
    public List<ViewManager> createViewManagers(ReactApplicationContext reactContext) {
        return Collections.emptyList();
    }
}
